import Mixins from '@/views/mixins'
import logistics from '@/api/system/logisticsAPI'
export default {
  mixins: [Mixins],
  methods: {
    getRequestType (opt) {
      if (opt === 'addLogisticsCompany') {
        return logistics.addLogisticsCompanyAPI
      } else if (opt === 'updateLogisticsCompany') {
        return logistics.updateLogisticsCompanyAPI
      } else if (opt === 'deleteLogisticsCompany') {
        return logistics.deleteLogisticsCompanyAPI
      } else {
        if (this.id === 'logistics') {
          return logistics.getLogisticsCompanyListAPI
        }
      }
    }
  }
}
